package org.pp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author haima
 * @since 2024-06-03
 */
@Getter
@Setter
@TableName("pp_public_file")
@Schema(name = "PpPublicFile", description = "文件表")
public class PpPublicFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "文件id")
    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "文件md5")
    private String md5;

    @Schema(description = "文件大小")
    private Long size;

    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "存储类型，0为七牛云，其他可扩展")
    private Integer storeType;

    @Schema(description = "租户号")
    private Long tenantId;

    @Schema(description = "乐观锁")
    private Integer revision;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;

    @Schema(description = "逻辑删除 1为删除 0为正常")
    private Boolean deleted;
}
